- Method 1
1 2 3 4 5 6 7 8 9 | local -machine: cd . ssh / local -machine: ssh -keygen -t dsa local -machine: chmod 600 id_dsa local -machine: scp id_dsa.pub account@remote-machine: local -machine: ssh remote-machine -l account remote-machine: cat id_dsa.pub >> . ssh /authorized_keys2 remote-machine: rm id_dsa.pub remote-machine: logout local -machine: ssh remote-machine -l account |
-
Method 2
123
ssh
-keygen
ssh
-copy-
id
-i ~/.
ssh
/id_rsa
.pub username@remote_host
ssh
remote-host
Reference
[http://www.thegeekstuff.com/2008/11/3-steps-to-perform-ssh-login-without-password-using-ssh-keygen-ssh-copy-id/ 3 Steps to Perform SSH Login Without Password Using ssh-keygen & ssh-copy-id]
[http://everydaylht.com/howtos/system-administration/loggin-in-via-ssh-without-a-password/ Logging In Via SSH Without A Password]
[http://www.cc.gatech.edu/~nsimhan/automatic.html Automatic backups with ssh and rsync howto. ssh without passwords]
[http://www.cs.umd.edu/~arun/misc/ssh.html SSH without password]
Hide Comments